﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Shared;

namespace DAL
{
    public class UserRepository:BaseRepository<User>, IUserRepository
    {
        public UserRepository(IdbContext context):base(context)
        { }

        public bool IsPassLoginValid(string login, string pass)
        {
            foreach (var item in _context.Set<User>())
            {
                if (item.Email == login && item.Password == pass)
                    return true;                
            }
            return false;
        }
    }
}
